<? if($ptotal>1){?>
<div class="f14">

<?
//首页
if($ptotal>5){?>
<a href="javascript:op('page','1,<?=$ptotal?>')" title="首页">&laquo;</a>
<? }?>

<?
//上一页
if($ptotal>1){?>
 <a style="color:black; text-decoration:none;" href="javascript:op('page','-,<?=$p?>,<?=$ptotal?>')" title="上一页">&lsaquo;</a> 
<? }?>

&nbsp;
<?
//前几页
$gp = $p - 4;
for($i=0; $i<4; $i++){
	if($gp>0){
?>
<a style="color:#999; text-decoration:none;" href="javascript:op('page','<?=$gp?>,<?=$ptotal?>')"><?=$gp?></a>
<?
	}
	$gp++;
}
?>
<?
//当前页?>
<a href="#" class="isme b" style="color:#666;"><?=$p?></a>

<?
//后几页
$gp = $p + 1;
for($i=0; $i<4; $i++){
	if($gp<=$ptotal){
?>

<a style="color:#999; text-decoration:none;" href="javascript:op('page','<?=$gp?>,<?=$ptotal?>')"><?=$gp?></a>
<?
	}
	$gp++;
}
?>

<?
//转到?>


&nbsp;
<?
//下一页
if($ptotal>1){?>
 <a href="javascript:op('page','+,<?=$p?>,<?=$ptotal?>')" title="下一页" style="color:black; text-decoration:none;">&rsaquo;</a> 
<? }?>

<?
//末页
if($ptotal>5){?>
<a href="javascript:op('page','<?=$ptotal?>,<?=$ptotal?>')" title="末页">&raquo;</a>
<? }?>

</div>
<? }?>